package com.example.jdcompetition.Entity;

import lombok.Data;

/**
 * @author henrydai
 * @date 2021/6/16 20:35
 */
@Data
public class CallResultMsg<T> {
    private boolean result;
    private int code;
    private String message;
    private T data;

    public CallResultMsg(boolean result, CodeAndMsg cam, T data) {
        this.result = result;
        this.code = cam.code;
        this.message=cam.msg;
        this.data = data;
    }
}
